import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:platform_view/NinePatchWithText.dart';
import 'package:platform_view/pag.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Padding(
          padding: EdgeInsets.all(30),
          child: NinePatchWithText(
            url: "https://image.duoo.live/gift/ic_viscount_msg_box.9.png",
            placeholder: Container(
              color: Colors.amber,
            ),
            child: Padding(
              padding: EdgeInsets.all(8),
              child: Text(
                  "sas3d4a6s3d13asd12as3d13as4d15632sas3d4a6s3d13asd12as3d13as4d15632sas3d4a6s3d13asd12as3d13as4d15632sas3d4a6s3d13asd12as3d13as4d15632sas3d4a6s3d13asd12as3d13as4d15632"),
            ),
          ),
        ),
      ),
    );
  }
}
